package com.estate.utils;
/**
 * 项目类别定义
 * @author Administrator
 *
 */
public class ProCatagoryUtil {

	public static int getProCatagoryInt(String catagoryString){
		int catagory = 0;
		
		if("造价咨询".equals(catagoryString)){
			catagory = 1;
		}else if("招标代理".equals(catagoryString)){
			catagory = 2;
		}else if("全过程管理".equals(catagoryString)){
			catagory = 3;
		}else if("实施方案".equals(catagoryString)){
			catagory = 31;
		}else if("实施计划".equals(catagoryString)){
			catagory = 32;
		}else if("审减作业计划".equals(catagoryString)){
			catagory = 11;
		}else if("审减会议纪要".equals(catagoryString)){
			catagory = 12;
		}else if("重大项目作业计划".equals(catagoryString)){
			catagory = 13;
		}else if("重大项目会议纪要".equals(catagoryString)){
			catagory = 14;
		}
		
		return catagory;
	}
	
	public static String getProCatagoryString(int catagoryInt){
		String catagory = "";
		
		if(catagoryInt == 1){
			catagory = "造价咨询";
		}else if(catagoryInt == 2){
			catagory = "招标代理";
		}else if(catagoryInt == 3){
			catagory = "全过程管理";
		}else if(catagoryInt == 31){
			catagory = "实施方案";
		}else if(catagoryInt == 32){
			catagory = "实施计划";
		}else if(catagoryInt == 11){
			catagory = "审减作业计划";
		}else if(catagoryInt == 12){
			catagory = "审减会议纪要";
		}else if(catagoryInt == 13){
			catagory = "重大项目作业计划";
		}else if(catagoryInt == 14){
			catagory = "重大项目会议纪要";
		}
		
		return catagory;
	}
}
